<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
</head>
<body>
	<form method="post">
		<div>
				<table class="table table-bordered">
					<tr height="10px">
						<th>课程代码</th>
						<th>课程名称</th>
						<th>上课时间</th>
						<th>上课地点</th>
						<th>操作</th>
					</tr>
					<!--信息填充处-->
					<s:iterator value="#request.cruObjects">
						<tr>
							<td><s:property value="objnum"/></td>
							<td><s:property value="objname"/></td>
							<td><s:property value="objtime"/></td>
							<td><s:property value="place"/></td>
							<td>
								<a href="<s:url action="obj_stuSearch">
											<s:param name="cruObject.objnum"><s:property value="objnum"/></s:param> 
										 </s:url>">查看本课程学生</a>
							</td>
						</tr>
					</s:iterator>
							<tr><td colspan="5">
							<div>
								<nav>
								  <ul class="pager"  style="margin:0px">
								    <li><a href="<s:url action="tcheckobject.action?currentPagechange=1"/>">首页</a></li>
								    <s:if test="#request.PageService.currentPage-2>0">
								    	 <li>
								    	 	<a href="<s:url action="tcheckobject.action?currentPagechange=%{#request.PageService.currentPage-2}"/>" id="li1" >
												<s:property value="#request.PageService.currentPage-2"/>
											</a>
										 </li>
								    </s:if>
								    <s:if test="#request.PageService.currentPage-1>0">
								    	 <li>
								    	 	<a href="<s:url action="tcheckobject.action?currentPagechange=%{#request.PageService.currentPage-1}"/>" id="li2" >
												<s:property value="#request.PageService.currentPage-1"/>
											</a>
										 </li>
								    </s:if>
								    <li><a><s:property value="#request.PageService.currentPage"/></a></li>
								    <s:if test="#request.PageService.currentPage+1<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="tcheckobject.action?currentPagechange=%{#request.PageService.currentPage+1}"/>"  id="li3" >
												<s:property value="#request.PageService.currentPage+1"/>
											</a>
										 </li>
								    </s:if>
								     <s:if test="#request.PageService.currentPage+2<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="tcheckobject.action?currentPagechange=%{#request.PageService.currentPage+2}"/>"  id="li4" >
												<s:property value="#request.PageService.currentPage+2"/>
											</a>
										 </li>
								    </s:if>
								    <li><a href="<s:url action="tcheckobject.action?currentPagechange=%{#request.PageService.pageCount}"/>">尾页</a></li>
								  </ul>
								</nav>
							</div></td>
							<tr>
				</table>
		</div>
	</form>
</body>
</html>